package com.adminx.service.impl;
import java.util.List;
import com.adminx.dao.RoleDao;
import com.adminx.po.Role;
import com.adminx.service.RoleService;


/*
 * 角色Service接口实现类
 */
public class RoleServiceImpl implements RoleService {
	//注入RoleDao

	private RoleDao roleDao = null ;
	@Override
	public List<Role> findRoleList() {
		List<Role> roleList=roleDao.selectRoleList();
		return roleList;
	}
	@Override
	public Role findRoleWithUsersByRoleId(Integer roleId) {
		Role role=roleDao.selectRoleWithUsers(roleId);
		return role;
	}
}
